package com.yanlin.interfaces;

import com.yanlin.GuiceBootStrap;
import com.yanlin.GuiceInitConfig;

import java.lang.reflect.InvocationTargetException;

public class TestGuiceProxyImpl implements TestGuice {

    TestGuice TestGuiceImpl;

    GuiceInitConfig guiceInitConfig;

    public TestGuiceProxyImpl(TestGuice testGuice) {

        this.TestGuiceImpl = testGuice;
    }

    public TestGuiceProxyImpl(GuiceInitConfig guiceInitConfig) throws ClassNotFoundException, InvocationTargetException, NoSuchMethodException, IllegalAccessException {
        GuiceBootStrap.startup(guiceInitConfig);
        this.guiceInitConfig = guiceInitConfig;
    }

    @Override
    public void sayHello() {
        TestGuiceImpl.sayHello();
    }
}
